﻿#region Header
//************************************************************************************
// Name: NHibernateCacheAttribute
// Description: NHibernateCacheAttribute
// Created On:  02-Aug-2011
// Created By:  Swathi
// Last Modified On:
// Last Modified By:
// Last Modified Reason:
//*************************************************************************************
#endregion Header
using System;

namespace Base.Utils.Attributes
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
    public class NHibernateCacheAttribute : Attribute
    {
        private readonly bool _cacheable;

        public NHibernateCacheAttribute(bool pCacheable)
        {
            _cacheable = pCacheable;
        }

        public bool Cacheable
        {
            get { return _cacheable; }
        }
    }
}